package com.ruoyi.framework.web.service;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.system.mapper.SysDeptMapper;
import com.ruoyi.system.service.ISysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LongJunJiang
 * @create 2022-08-22-2:27
 */
@Service("dept")
public class DeptService {
    @Autowired
    private ISysDeptService DeptService;

    public List<SysDept> getAllDepts(){
        return DeptService.selectAllDept();
    }
}
